import Router from 'koa-router'
import user_controller from '../app/controllers/user_controller'
const router = Router();
router.prefix('/users')

router.get('/getUser', user_controller.getUser);
router.post('/registerUser', user_controller.registerUser);

router.get('/', function (ctx, next) {
  ctx.body = 'this is a users response!'
})
router.get('/bar', function (ctx, next) {
  ctx.body = 'this is a users/bar response'
})

module.exports = router
